package com.sevenGroup.pawnshop.dao;

import com.sevenGroup.pawnshop.controller.form.AccountAndUserForm;
import com.sevenGroup.pawnshop.model.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sevenGroup
 * @since 2022-02-16
 */
public interface UsersDao extends BaseMapper<Users> {
//  新增账号
    @Insert("insert into users values (default,#{userName},#{userEamil},#{userHeader},#{userAddress},#{userAge},#{accountId},#{roleId},#{roleManage},#{roleName},#{storeId},#{storeName})")
    Integer addUser(AccountAndUserForm accountForm);
}
